<?php
/**
 * Created by PhpStorm.
 * User: august
 * Date: 2021/2/25
 * Time: 17:47
 */

namespace app\validate;


use think\Validate;

class MenuValidate extends Validate
{
    protected $rule = [
        'name' => 'require',
        'route' => 'require',
        'parent_id' => 'require|number',
    ];

    protected $message = [
        'name.require' => '菜单名称必须填写',
        'route.require' => '路由必须填写',
        'parent_id.require' => '父菜单必须选择',
    ];
}